package com.zhongketech.sunflower.main;

import java.util.List;

import com.umeng.update.UmengUpdateAgent;
import com.zhongketech.sunflower.R;
import com.zhongketech.sunflower.main.fragment.FragmentMe;
import com.zhongketech.sunflower.main.fragment.FragmentOne;
import com.zhongketech.sunflower.main.fragment.FragmentThree;
import com.zhongketech.sunflower.main.fragment.FragmentTwo;
import com.zhongketech.sunflower.main.ui.IndicatorFragmentActivity;

import android.os.Bundle;

public class MainActivity extends IndicatorFragmentActivity {

    public static final int FRAGMENT_ONE = 0;
    public static final int FRAGMENT_TWO = 1;
    public static final int FRAGMENT_THREE = 2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        UmengUpdateAgent.update(this);
    }

    @Override
    protected int supplyTabs(List<TabInfo> tabs) {
        tabs.add(new TabInfo(FRAGMENT_ONE,"消息",R.drawable.message,
                FragmentTwo.class));
        tabs.add(new TabInfo(FRAGMENT_TWO, "通讯录",R.drawable.contact,
                FragmentThree.class));
        tabs.add(new TabInfo(FRAGMENT_THREE, "我",R.drawable.me,
                FragmentMe.class));
        return FRAGMENT_TWO;
    }

}
